package assignment9.Parcel6;

import assignment9.*;

public class Parcel6 {
    public Content cont() {
    	//在本类的方法中构造一个内部类并返回
        return new Content() {
        	private int i = 11; 
        	public int value() { return i; } 
        };
    }

    public static void main(String[] args) {
    	Parcel6 p = new Parcel6();
        Content c = p.cont();
        System.out.println(c.value());
    }
}